package com.dachuang.canjiren.mapper;

import com.dachuang.canjiren.entity.Business;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dachuang.canjiren.entity.Volunteer;
import com.dachuang.canjiren.entity.Work;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author testjava
 * @since 2020-07-27
 */
@Repository
public interface BusinessMapper extends BaseMapper<Business> {
    /**
     * 添加创业表
     * @param business
     * @return
     */
    int insertBusiness(Business business);

    /**
     * 根据创业id查询
     * @param id
     * @return
     */
    Business selectBusiness(Integer id);

    /**
     * 根据用户查询
     * @param userId
     * @return
     */
    List<Business> selectUserBusiness(Integer userId);

    /**
     * 查询所有
     * @return
     */
    List<Business> selectBusinessList();
}
